﻿using System;
using QuanLyHopDong.Biz;
using QuanLyHopDong.Biz.Model;

namespace QuanLyHopDong.Web.HopDong
{
    public partial class TienDoThiCong : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Doi Thi Cong
                var doiThiCongs = DoiThiCongBiz.GetAll();
                doiThiCongs.Insert(0, new DoiThiCong { Id = 0, Ten = string.Empty });
                ddlDoiThiCong.DataTextField = "Ten";
                ddlDoiThiCong.DataValueField = "Id";
                ddlDoiThiCong.DataSource = doiThiCongs;
                ddlDoiThiCong.DataBind();
            }
        }
    }
}